package com.ss.android.article.browser.view.multiselect.viewholder;

import android.content.Context;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import org.jetbrains.annotations.NotNull;

public abstract class aa implements c {
    public aa() {

    }

    @NotNull
    public abstract View a(Context arg1);

    @NotNull
    public final b a(ViewHolder viewHolder, com.ss.android.article.browser.view.multiselect.a adapter) {
        Context context = viewHolder.itemView.getContext();
        ViewGroup root = this.c(context);
        root.setLayoutParams(new ViewGroup.LayoutParams(viewHolder.itemView.getLayoutParams()));
        View v6 = this.a(context);
        View v7 = this.b(context);
        FrameLayout v2 = new FrameLayout(context);
        v2.setId(com.ss.android.article.browser.R.id.afm);
        FrameLayout.LayoutParams v1 = new FrameLayout.LayoutParams(-1, -1);
        v1.gravity = 17;
        v2.addView(v7, v1);
        v2.addView(v6, ((ViewGroup.LayoutParams) v1));
        v2.setVisibility(View.GONE);
        View itemView = viewHolder.itemView;
        this.a(root, itemView, v2);
        v2.measure(root.getWidth(), root.getHeight());
        v2.setVisibility(View.GONE);
        return new com.ss.android.article.browser.view.multiselect.viewholder.a.b(root, viewHolder, adapter, this, v2, v6, v7);
    }

    public abstract void a(ViewGroup arg1, View arg2, View arg3);

    public abstract void a(@NotNull View arg1, @NotNull View arg2);

    @NotNull
    public abstract View b(Context arg1);

    public abstract void b(@NotNull View arg1, @NotNull View arg2);

    @NotNull
    public abstract ViewGroup c(Context arg1);
}

